<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%> 
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="<%=basePath%>/JS/jquery-1.10.2.min.js"></script>
</head>
<body>

<img alt="" src="<%=basePath%>/Images/warehouse.jpg" width="100px" height="100px">
<a href="javascript:void(0)" onclick="getjson();">返回JSON数据</a>
<a href="javascript:void(0)" onclick="getString();">返回字符串数据</a>
<a href="<%=basePath%>/system/helloWorld/register">注册页面</a>
<a href="javascript:void(0)" onclick="addUser();">新增用户</a>
<a href="javascript:void(0)" onclick="getUserDepartmentList();">查询用户列表</a>
<img alt="" src="<%=basePath%>/system/helloWorld/getValidationImage" width="100px" height="50px">
<br/><br/>
<a href="<%=basePath%>/system/helloWorld/jstl">jstl示例</a>
</body>
</html>
<script>
$(function() {
	
});
function getjson() {
	$.get("<%=basePath%>/system/helloWorld/jsonDemo",function(data){
		alert(data.liuche);
	})
}
function getString() {
	$.get("<%=basePath%>/system/helloWorld/stringDemo2",function(data){
		alert(data);
	})
}
function addUser() {
	$.get("<%=basePath%>/system/helloWorld/addUser",function(data){
		alert(data);
	})
}
function getUserDepartmentList() {
	$.get("<%=basePath%>/system/helloWorld/getUserDepartmentList",function(data){
		alert(data);
	})
}
</script>